package com.jason.www.strategy_pattern.demo1.core;

public class TranslationContext{

    private TranslationStategy stategy;

    public TranslationContext(TranslationStategy stategy) {
        this.stategy = stategy;
    }

    public String translate(String english) {
        return stategy.translate(english);
    }

    public void setStategy(TranslationStategy stategy) {
        this.stategy = stategy;
    }
}
